package com.maple.utils.util

import com.maple.utils.const.ConstKey


class HttpResponseUtils {

    companion object {
        fun handleErrorCode(code: String?, message: String?): Boolean {
            LogUtils.logGGQ("====handleErrorCode=====>>${code}")
            when(code) {
                // 未授权 或 访问受限 去登录页
                ConstKey.HttpCode.ERROR_UNAUTHORIZED  ->{
                    LogUtils.logGGQ("====自定义处理=====>>${code}")
                    return true
                }
            }
            return false
        }
    }
}